-- hit_skill
-- Created by cheny3 Aug/03/2016
-- 受创后触发：天空战属性释放技能
-- ([2:100])代表100%概率释放技能2

return {
    -- 空属性
    getEmptyProp = function()
        return {};
    end,

    -- 合并属性
    mergeSkyProp = function(data, addon)
        local result = {};

        if not data then
            result = table.deepcopy(addon);
        else
            result = table.deepcopy(data);

            for _, skillId in pairs(addon) do
                local value = addon[skillId];

                if not result[skillId] then
                    result[skillId] = value;
                else
                    result[skillId] = value + (result[skillId] or 0);
                end
            end
        end

        return result;
    end,

    parseDesc = function(desc, data)
        -- 按顺序替换，每次替换一个
        -- TODO

        return desc;
    end,
};